package com.medical.view.menu;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.AttributeModifier;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.Model;
 
 
import com.medical.view.admin.AdminSubMenuPage;
 
import com.medical.view.wicket.Model.MedResourceModel;
import com.medical.view.wicket.html.MedWebPage;
import com.medical.view.wicket.html.tabs.MedAbstractTab;
import com.medical.view.wicket.html.tabs.MedAjaxTabbedPanel;
 

public class MainPage extends MedWebPage {

	public MainPage() {

		MainPage.this.setDefaultModel(new Model("tabpanel1"));

		List tabs = new ArrayList();
		tabs.add(new MedAbstractTab((new MedResourceModel("tab.admin"))) {

			public Panel getPanel(String panelId) {
				return new AdminSubMenuPage(panelId);
			}

		});
		
		 
	
		add(new MedAjaxTabbedPanel("tabs", tabs).add(new AttributeModifier("class",
				true, MainPage.this.getDefaultModel()))); 

	}

}
